package com.rj.gpdata.domain.query;

import lombok.Data;

/**
 * 概念板块
 * https://datacenter.eastmoney.com/securities/api/data/get?type=RPT_F10_CORETHEME_BOARDTYPE&sty=SECUCODE,SECURITY_CODE,SECURITY_NAME_ABBR,BOARD_CODE,BOARD_NAME,IS_PRECISE,BOARD_RANK,BOARD_TYPE&&p=1&ps=&sr=1&st=BOARD_RANK&source=HSF10&client=PC&v=04583596716872065
 */
@Data
public class QueryGlbkParam {
        /**
         * type:数据类型
         * sty:返回字段
         * p:当前页
         * ps:每页显示数量
         * sr:排序方式
         * st:排序字段
         * source:数据源
         * client:客户端
         * v:版本号
         */
        private String type="RPT_F10_CORETHEME_BOARDTYPE";
        private String sty="SECUCODE,SECURITY_CODE,SECURITY_NAME_ABBR,BOARD_CODE,BOARD_NAME,IS_PRECISE,BOARD_RANK,BOARD_TYPE";
        private int p=1;
        private int ps=100;
        private int sr=1;
        private String st="BOARD_RANK";
        private String source="HSF10";
        private String client="PC";
        private String v="04583596716872065";
        private String filter="";
        public void setFilter(String secuCode) {
                this.filter ="(SECUCODE=\"%s\")".formatted(secuCode) ;
        }
}
